#ifndef __HCSR04_1_H
#define __HCSR04_1_H
#include "stm32f10x.h"   // Device header
#include "OLED.h"                  // Device header
#include "Delay.h"


#define Trig_Port_1 		GPIOB
#define Trig_Pin_1 		GPIO_Pin_11
#define Trig_RCC_1		RCC_APB2Periph_GPIOB

#define Echo_Port_1 		GPIOB
#define Echo_Pin_1 		GPIO_Pin_10
#define Echo_RCC_1		RCC_APB2Periph_GPIOB
void Tim4_Init(void);
void HCSR04_1_Init(void);
void HCSR04_Start_1(void);
uint32_t Get_Echo_Time_1(void);
uint32_t  Ultrasonic_CalculateDistance_1(uint32_t time);
uint32_t  Ultrasonic_GetDistance_1(void);


#endif 
